From 828aa6d8e7874211ea7e763c0c7862ad36cb5f08 Mon Sep 17 00:00:00 2001 From: dinesh Date: Sat, 4 Jul 2015 13:47:28 +0530 Subject: [PATCH] Add uninstall target --- Makefile.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index e1157d3b0..39d4d115e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -213,15 +213,21 @@ install-$(1): $$(DISTDIR_$(1))/$$(PKG_NAME)-$(1).tar.gz $$(PKGDIR_$(1))/install.sh \ --prefix="$$(CFG_PREFIX)" \ --destdir="$$(DESTDIR)" $$(MAYBE_DISABLE_VERIFY) + +uninstall-$(1): $$(DISTDIR_$(1))/$$(PKG_NAME)-$(1).tar.gz + $$(PKGDIR_$(1))/install.sh \ + --uninstall endef $(foreach target,$(CFG_TARGET),$(eval $(call DO_DIST_TARGET,$(target)))) dist: $(foreach target,$(CFG_TARGET),dist-$(target)) distcheck: $(foreach target,$(CFG_TARGET),distcheck-$(target)) install: $(foreach target,$(CFG_TARGET),install-$(target)) +uninstall: $(foreach target,$(CFG_TARGET), uninstall-$(target)) + # Setup phony tasks -.PHONY: all clean clean-all dist distcheck install test test-unit style +.PHONY: all clean clean-all dist distcheck install uninstall test test-unit style # Disable unnecessary built-in rules .SUFFIXES: -- 2.30.2